# 作业5：
name = " a重生之我是张无忌无敌叼霸天A "
print(f'去除两边空格:{name.strip()}')
print(f'startswith:{name.startswith("我是")}')
print(f'endswith:{name.endswith("张无忌")}')
print(f'replace:{name.replace("无忌","苏琰")}')
print(f'replace:{name.replace("无","有",1)}')
print(f'分隔:{name.split("无")}')
print(f'分隔:{name.split("无",1)}')
print(f'大写:{name.upper()}')
print(f'小写:{name.lower()}')
print(f'name[0:3:2]:{name[0:3:2]}')
print(f'name[0:4:1]:{name[0:4:1]}')
print(f'name[-1:-3:-1]:{name[-2::1]}')


